<?php
class Event extends AppModel {

	var $name = 'Event';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'User' => array('className' => 'User',
								'foreignKey' => 'user_id'),
								
			'EventType' => array('className' => 'EventType',
								'foreignKey' => 'event_type_id'),
			'Country' => array('className' => 'Country',
								'foreignKey' => 'country_id')
	);

	
	function afterSave()
	{
		@unlink(CACHE.'views'.DS.'element__getevents');
		//clearCache('EventsController'); 
	}
	
	function afterDelete()
	{
		@unlink(CACHE.'views'.DS.'element__getevents');
		//clearCache('EventsController');
	}
}
?>